import json
# 定义json格式的数据
jsonData01 = {"name": "Python语言", "PV": "50万", "craeteTime": "2023-10-30"}

# 将json数据保存到数组
jsonList = []
for k, v in jsonData01.items():
    jsonList.append(v)
print(jsonList)

# 定义一个json文件并将数据写入
with open("jsonList.json", "a") as f:
    json.dump(jsonList, f, ensure_ascii= False)